package team.star.werespos.service;

import team.star.werespos.model.entity.Table;

import java.util.List;

/**
 * TableService interface<br/>
 *
 * @author hdonghong
 * @since 2019/03/23
 */
public interface TableService {

    Table getOne(Integer tableId);

    Table getByTableNum(Integer tableNum);

    void insertOne(Table table);

    List<Table> listTables();

    void updateById(Table table);

    void deleteById(Table table);

    void releaseTable(Integer tableNum);

}
